import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import 'antd-mobile/dist/antd-mobile.css';
// import { hashHistory } from 'react-router';
import { BrowserRouter, Route, } from 'react-router-dom';

// const routes = [
//   {
//     path: '/',
//     component: App
//   },{
//     path: '/login',
//     component: Login
//   },{
//     path: '/about',
//     component: About
//   },{
//     path: '/home',
//     component: Home,
//   }
// ]

ReactDOM.render((
  // <BrowserRouter>
  //   <div>
  //    <Route exact path="/" render={() => <App/>}></Route>
  //   </div>
  // </BrowserRouter>
  <App/>
),
document.getElementById('root'));
registerServiceWorker();
